SRCS = hello
EDOCS = doc
EBIN = ebin
src_target: $(SRCS:%=$(EBIN)/%.beam)
# demo_target: demo:%=ebin/%.beam
edoc_target: $(EDOCS:%=$(EBIN)/%.beam)

TARGETS = src_target \
	edoc_target #demo_target

$(EBIN)/%.beam: %.erl
	erlc -o +native +debug_info +warn_exported_vars +warn_unused_import +warn_missing_spec $(EBIN) $<

docs: clean $(TARGETS)
	erl -noinput -pa ebin/ -eval "doc:make_doc()" -s init stop





clean:
	rm -rf *.dump
